package com.zn.entity;

/**
 * @author YinJiaWei
 * @version 2018/12/28 18:22
 */
public class ContractAnalysis {
    /**期权合约简称**/
    private String contractName;
    /**成交量**/
    private String volume;
    private String delta;
    private String gamma;
    private String theta;
    private String vega;
    /**隐含波动率**/
    private String wavePrice;
    /**最高价**/
    private String highPrice;
    /**最低价**/
    private String lowPrice;
    /**交易代码**/
    private String tradeCode;
    /**行权价**/
    private String execsPrice;
    /**最新价**/
    private String lastPrice;
    /**理论价值**/
    private String theoryPrice;
    /**价值状态**/
    private String priceStatus;

    public ContractAnalysis(String contractName, String volume, String delta, String gamma, String theta, String vega, String wavePrice, String highPrice, String lowPrice, String tradeCode, String execsPrice, String lastPrice, String theoryPrice,String priceStatus) {
        this.contractName = contractName;
        this.volume = volume;
        this.delta = delta;
        this.gamma = gamma;
        this.theta = theta;
        this.vega = vega;
        this.wavePrice = wavePrice;
        this.highPrice = highPrice;
        this.lowPrice = lowPrice;
        this.tradeCode = tradeCode;
        this.execsPrice = execsPrice;
        this.lastPrice = lastPrice;
        this.theoryPrice = theoryPrice;
        this.priceStatus=priceStatus;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getDelta() {
        return delta;
    }

    public void setDelta(String delta) {
        this.delta = delta;
    }

    public String getGamma() {
        return gamma;
    }

    public void setGamma(String gamma) {
        this.gamma = gamma;
    }

    public String getTheta() {
        return theta;
    }

    public void setTheta(String theta) {
        this.theta = theta;
    }

    public String getVega() {
        return vega;
    }

    public void setVega(String vega) {
        this.vega = vega;
    }

    public String getWavePrice() {
        return wavePrice;
    }

    public void setWavePrice(String wavePrice) {
        this.wavePrice = wavePrice;
    }

    public String getHighPrice() {
        return highPrice;
    }

    public void setHighPrice(String highPrice) {
        this.highPrice = highPrice;
    }

    public String getLowPrice() {
        return lowPrice;
    }

    public void setLowPrice(String lowPrice) {
        this.lowPrice = lowPrice;
    }

    public String getTradeCode() {
        return tradeCode;
    }

    public void setTradeCode(String tradeCode) {
        this.tradeCode = tradeCode;
    }

    public String getExecsPrice() {
        return execsPrice;
    }

    public void setExecsPrice(String execsPrice) {
        this.execsPrice = execsPrice;
    }

    public String getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(String lastPrice) {
        this.lastPrice = lastPrice;
    }

    public String getTheoryPrice() {
        return theoryPrice;
    }

    public void setTheoryPrice(String theoryPrice) {
        this.theoryPrice = theoryPrice;
    }

    public String getPriceStatus() {
        if("A".equals(priceStatus)){
            priceStatus = "虚值";
        }else if("M".equals(priceStatus)){
            priceStatus = "实值";
        }
        return priceStatus;
    }
    public void setPriceStatus(String priceStatus) {
        this.priceStatus=priceStatus;
    }
}
